package com.youku.component.procedure;

import static org.junit.Assert.assertNotNull;

import com.youku.component.Project;
import com.youku.component.TestCase;
import com.youku.component.connection.MysqlConnector;

public class MysqlProcedure extends SQLProcedure {

	public MysqlProcedure(String id,String connectionId, TestCase testCase, String times) {
		super(id,testCase, times);
		Project project = testCase.getProject();
		MysqlConnector connector = (MysqlConnector) project.getConnector(connectionId);
		assertNotNull("不存在id为" + connectionId + "的数据库连接", connector);
		setConnection(connector.getConnection());
	}

}
